$(function () {
    loadConfirmData("香港")
})


//加载数据
function loadConfirmData(name) {
    var pie_chinaFive = echarts.init(document.getElementById("confirmCount"), 'infographic');
    option = {
        tooltip: {
            trigger: 'axis',
            axisPointer: {            // 坐标轴指示器，坐标轴触发有效
                type: 'shadow'        // 默认为直线，可选为：'line' | 'shadow'
            }
        },
        grid: {
            left: 40,
            right: 20,
            top: 30,
            bottom: 0,
            containLabel: true
        },

        xAxis: {
            type: 'value',
            axisLine: {
                lineStyle: {
                    color: 'rgba(255,255,255,0)'
                }
            },
            splitLine: {
                lineStyle: {
                    color: 'rgba(255,255,255,0)'
                }
            },
            axisLabel: {
                color: "rgba(255,255,255,0)"
            },
            boundaryGap: [0, 0.01]
        },
        yAxis: {
            type: 'category',
            axisLine: {
                lineStyle: {
                    color: 'rgba(255,255,255,5)'
                }
            },
            splitLine: {
                lineStyle: {
                    color: 'rgba(255,255,255,1)'
                }
            },
            axisLabel: {
                color: "red"
            },
            data: ['成都', '绵阳', '乐山'],
        },
        series: [
            {
                name: '2021-02-18',
                type: 'bar',
                barWidth: 20,
                itemStyle: {
                    normal: {
                        color: 'blue',
                        opacity: 1,
                        barBorderRadius: 5,
                    }
                },
                data: [11, 22, 33],
            }
        ]
    };
    pie_chinaFive.setOption(option);
}


